﻿<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>康养旅居宝</title>
    	<jsp:include page="common/common.jsp"/>
  <link rel="stylesheet" href="${path}/css/sign.css">
</head>
<body>
    <div class="signtitle">
        <h3>请输入用户信息注册或登录</h3>
    </div>

    <div class="box setting">
      	<form id="frmlogin" method="post" action="${path}/login/login">
    
        <ul>
            <li>
                手机：<input type="text" name="loginname"  id="mobile" placeholder="请填写您的手机号">
            </li>
            <li>
                密码：<input type="password" name="loginpwd"  id="password" placeholder="填写密码">
            </li>
           
        </ul>
         
        <div class="loginbtn">
         
            <div class="logbtn  "  >
            <a href="${path}/register/index">
                注册
                </a>
            </div>
               <div class="signbtn mainbtn"   onclick="islogbe()">
                登录

            </div>
                     
              <!-- <button class="signbutton loginout"  onclick="islogbe()">登录</button> --> 
            <div class="clearfloat">     </div>
        </div>
          <a href="${path}/login/forgetPassword"  style="float: right;">忘记密码？</a>
    </div>
      </form>
</body>
<script src="${path}/js/jquery-3.2.1.min.js"></script>
</html>

<script type="text/javascript" >

function islogbe(){
	$("#frmlogin").submit();
}
// 表单提交
	// $("#btnsub").click(function () {
		
// 	  	var username = $("#loginname").val();
// 		var password = $("#loginpwd").val();
// 		if(username.trim() == ''){
// 			layer.tips('请输入用户名/邮箱/手机号码','#username', {tips: 1});
// 			return false;
// 		}else if(password.trim() == ''){
// 			layer.tips('请输入登录密码','#password', {tips: 1});
// 			return false;
// 		}
		// $("#frmlogin").submit();
// 	});

		if('${msg}'!=''){
						layer.open({ content:'${msg}',skin: 'msg' ,time: 2 });//2秒后自动关闭
					}
	 
</script>
